package com.febs.security.properties;

import org.springframework.boot.context.properties.ConfigurationProperties;

import lombok.Data;

/**
 * 配置
 *
 * @author zhongyj <1126834403@qq.com><br/>
 * @date 2021/6/18
 */
@Data
@ConfigurationProperties(prefix = "febs.security")
public class FebsSecurityProperties {

    public static final String ENABLE_REDIS_CACHE = "febs.security.enable-redis-cache";

    /**
     * 登录 URL
     */
    private String loginUrl;
    /**
     * 免认证静态资源路径
     */
    private String anonResourcesUrl;
    /**
     * 记住我超时时间
     */
    private int rememberMeTimeout;
    /**
     * 登出 URL
     */
    private String logoutUrl;
    /**
     * 主页 URL
     */
    private String indexUrl;

    private ValidateCodeProperties code = new ValidateCodeProperties();

    private SocialProperties social = new SocialProperties();

    private SessionProperties session = new SessionProperties();

    private TokenProperties token = new TokenProperties();

}
